package jsyf.oa.entity.salary;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

/**
 * Created by Maqiuqiu on 2018/11/17.
 */
@Entity
@Table(name = "t_sys_salary_details", schema = "oa", catalog = "")
public class SalaryDetailsEntity extends BaseEntity {

    private String salaryId;
    private String userId;
    private String preSalaryStandard;
    private String curSalaryStandard;
    private String overtimeDays;
    private String wages;
    private String foodAllowance;
    private String carSupplementStandard;
    private String carSupplement;
    private String callSupplement;
    private String houseSupplement;
    private String otherSupplement;
    private String personnelDeduction;
    private String otherDetuction;
    private String payable;
    private String insuranceGold;
    private String taxAmount;
    private String shouldTax;
    private String repayment;
    private String realPay;
    private String remark;
    private String payDate;
    private String ryNo;
    private String departId;
    private String departName;
    private String userName;
    private String roleName;
    private String entryDate;
    private String wegeCard;
    private String province;
    private String city;
    private String country;
    private String bank;
    private String card;
    private String shouldSignIn;
    private String realSignIn;
    private String leaveDays;
    private String signInStandard;
    private String signInFormer;
    private String bouns;
    private String SalesAward;
    private String SalesPunishment;
    private String companyName;
    private String companyId;
    private String month;
    private String attachName;

    public String getSalaryId() {
        return salaryId;
    }

    public void setSalaryId(String salaryId) {
        this.salaryId = salaryId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPreSalaryStandard() {
        return preSalaryStandard;
    }

    public void setPreSalaryStandard(String preSalaryStandard) {
        this.preSalaryStandard = preSalaryStandard;
    }

    public String getCurSalaryStandard() {
        return curSalaryStandard;
    }

    public void setCurSalaryStandard(String curSalaryStandard) {
        this.curSalaryStandard = curSalaryStandard;
    }

    public String getOvertimeDays() {
        return overtimeDays;
    }

    public void setOvertimeDays(String overtimeDays) {
        this.overtimeDays = overtimeDays;
    }

    public String getWages() {
        return wages;
    }

    public void setWages(String wages) {
        this.wages = wages;
    }

    public String getFoodAllowance() {
        return foodAllowance;
    }

    public void setFoodAllowance(String foodAllowance) {
        this.foodAllowance = foodAllowance;
    }

    public String getCarSupplementStandard() {
        return carSupplementStandard;
    }

    public void setCarSupplementStandard(String carSupplementStandard) {
        this.carSupplementStandard = carSupplementStandard;
    }

    public String getCarSupplement() {
        return carSupplement;
    }

    public void setCarSupplement(String carSupplement) {
        this.carSupplement = carSupplement;
    }

    public String getCallSupplement() {
        return callSupplement;
    }

    public void setCallSupplement(String callSupplement) {
        this.callSupplement = callSupplement;
    }

    public String getHouseSupplement() {
        return houseSupplement;
    }

    public void setHouseSupplement(String houseSupplement) {
        this.houseSupplement = houseSupplement;
    }

    public String getOtherSupplement() {
        return otherSupplement;
    }

    public void setOtherSupplement(String otherSupplement) {
        this.otherSupplement = otherSupplement;
    }

    public String getPersonnelDeduction() {
        return personnelDeduction;
    }

    public void setPersonnelDeduction(String personnelDeduction) {
        this.personnelDeduction = personnelDeduction;
    }

    public String getOtherDetuction() {
        return otherDetuction;
    }

    public void setOtherDetuction(String otherDetuction) {
        this.otherDetuction = otherDetuction;
    }

    public String getPayable() {
        return payable;
    }

    public void setPayable(String payable) {
        this.payable = payable;
    }

    public String getInsuranceGold() {
        return insuranceGold;
    }

    public void setInsuranceGold(String insuranceGold) {
        this.insuranceGold = insuranceGold;
    }

    public String getTaxAmount() {
        return taxAmount;
    }

    public void setTaxAmount(String taxAmount) {
        this.taxAmount = taxAmount;
    }

    public String getShouldTax() {
        return shouldTax;
    }

    public void setShouldTax(String shouldTax) {
        this.shouldTax = shouldTax;
    }

    public String getRepayment() {
        return repayment;
    }

    public void setRepayment(String repayment) {
        this.repayment = repayment;
    }

    public String getRealPay() {
        return realPay;
    }

    public void setRealPay(String realPay) {
        this.realPay = realPay;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPayDate() {
        return payDate;
    }

    public void setPayDate(String payDate) {
        this.payDate = payDate;
    }

    public String getRyNo() {
        return ryNo;
    }

    public void setRyNo(String ryNo) {
        this.ryNo = ryNo;
    }

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getEntryDate() {
        return entryDate;
    }

    public void setEntryDate(String entryDate) {
        this.entryDate = entryDate;
    }

    public String getWegeCard() {
        return wegeCard;
    }

    public void setWegeCard(String wegeCard) {
        this.wegeCard = wegeCard;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getShouldSignIn() {
        return shouldSignIn;
    }

    public void setShouldSignIn(String shouldSignIn) {
        this.shouldSignIn = shouldSignIn;
    }

    public String getRealSignIn() {
        return realSignIn;
    }

    public void setRealSignIn(String realSignIn) {
        this.realSignIn = realSignIn;
    }

    public String getLeaveDays() {
        return leaveDays;
    }

    public void setLeaveDays(String leaveDays) {
        this.leaveDays = leaveDays;
    }

    public String getSignInStandard() {
        return signInStandard;
    }

    public void setSignInStandard(String signInStandard) {
        this.signInStandard = signInStandard;
    }

    public String getSignInFormer() {
        return signInFormer;
    }

    public void setSignInFormer(String signInFormer) {
        this.signInFormer = signInFormer;
    }

    public String getBouns() {
        return bouns;
    }

    public void setBouns(String bouns) {
        this.bouns = bouns;
    }

    public String getSalesAward() {
        return SalesAward;
    }

    public void setSalesAward(String salesAward) {
        SalesAward = salesAward;
    }

    public String getSalesPunishment() {
        return SalesPunishment;
    }

    public void setSalesPunishment(String salesPunishment) {
        SalesPunishment = salesPunishment;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getAttachName() {
        return attachName;
    }

    public void setAttachName(String attachName) {
        this.attachName = attachName;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("SALARY_ID", getSalaryId());
        obj.put("USER_ID", getUserId());
        obj.put("PRE_SALARY_STANDARD", getPreSalaryStandard());
        obj.put("CUR_SALARY_STANDARD", getCurSalaryStandard());
        obj.put("OVERTIME_DAYS", getOvertimeDays());
        obj.put("WAGES", getWages());
        obj.put("FOOD_ALLOWANCE", getFoodAllowance());
        obj.put("CAR_SUPPLEMENT_STANDARD", getCarSupplementStandard());
        obj.put("CAR_SUPPLEMENT", getCarSupplement());
        obj.put("CALL_SUPPLEMENT", getCallSupplement());
        obj.put("HOUSE_SUPPLEMENT", getHouseSupplement());
        obj.put("OTHER_SUPPLEMENT", getOtherSupplement());
        obj.put("PERSONNEL_DEDUCTION", getPersonnelDeduction());
        obj.put("OTHER_DETUCTION", getOtherDetuction());
        obj.put("PAYABLE", getPayable());
        obj.put("INSURANCE_GOLD", getInsuranceGold());
        obj.put("TAX_AMOUNT", getTaxAmount());
        obj.put("SHOULD_TAX", getShouldTax());
        obj.put("REPAYMENT", getRepayment());
        obj.put("REAL_PAY", getRealPay());
        obj.put("REMARK", getRemark());
        obj.put("PAY_DATE", getPayDate());
        obj.put("RY_NO", getRyNo());
        obj.put("DEPART_ID", getDepartId());
        obj.put("DEPART_NAME", getDepartName());
        obj.put("USER_NAME", getUserName());
        obj.put("ROLE_NAME", getRoleName());
        obj.put("ENTRY_DATE", getEntryDate());
        obj.put("WEGE_CARD", getWegeCard());
        obj.put("PROVINCE", getProvince());
        obj.put("CITY", getCity());
        obj.put("COUNTRY", getCountry());
        obj.put("BANK", getBank());
        obj.put("CARD", getCard());
        obj.put("SHOULD_SIGN_IN", getShouldSignIn());
        obj.put("REAL_SIGN_IN", getRealSignIn());
        obj.put("LEAVE_DAYS", getLeaveDays());
        obj.put("SIGN_IN_STANDARD", getSignInStandard());
        obj.put("SIGN_IN_FORMER", getSignInFormer());
        obj.put("COMPANY_NAME", getCompanyName());
        obj.put("BOUNS", getBouns());
        obj.put("SALES_AWARD", getSalesAward());
        obj.put("SALES_PUNISHMENT", getSalesPunishment());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("MONTH", getMonth());
        obj.put("ATTACH_NAME", getAttachName());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_salary_details";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("SALARY_ID", "salaryId");
        obj.put("USER_ID", "userId");
        obj.put("PRE_SALARY_STANDARD", "preSalaryStandard");
        obj.put("CUR_SALARY_STANDARD", "curSalaryStandard");
        obj.put("OVERTIME_DAYS", "overtimeDays");
        obj.put("WAGES", "wages");
        obj.put("FOOD_ALLOWANCE", "foodAllowance");
        obj.put("CAR_SUPPLEMENT_STANDARD", "carSupplementStandard");
        obj.put("CAR_SUPPLEMENT", "carSupplement");
        obj.put("CALL_SUPPLEMENT", "callSupplement");
        obj.put("HOUSE_SUPPLEMENT", "houseSupplement");
        obj.put("OTHER_SUPPLEMENT", "otherSupplement");
        obj.put("PERSONNEL_DEDUCTION", "personnelDeduction");
        obj.put("OTHER_DETUCTION", "otherDetuction");
        obj.put("PAYABLE", "payable");
        obj.put("INSURANCE_GOLD", "insuranceGold");
        obj.put("TAX_AMOUNT", "taxAmount");
        obj.put("SHOULD_TAX", "shouldTax");
        obj.put("REPAYMENT", "repayment");
        obj.put("REAL_PAY", "realPay");
        obj.put("REMARK", "remark");
        obj.put("PAY_DATE", "payDate");
        obj.put("RY_NO", "ryNo");
        obj.put("DEPART_ID", "departId");
        obj.put("DEPART_NAME", "departName");
        obj.put("USER_NAME", "userName");
        obj.put("ROLE_NAME", "roleName");
        obj.put("ENTRY_DATE", "entryDate");
        obj.put("WEGE_CARD", "wegeCard");
        obj.put("PROVINCE", "province");
        obj.put("CITY", "city");
        obj.put("COUNTRY", "country");
        obj.put("BANK", "bank");
        obj.put("CARD", "card");
        obj.put("SHOULD_SIGN_IN", "shouldSignIn");
        obj.put("REAL_SIGN_IN", "realSignIn");
        obj.put("LEAVE_DAYS", "leaveDays");
        obj.put("SIGN_IN_STANDARD", "signInStandard");
        obj.put("SIGN_IN_FORMER", "signInFormer");
        obj.put("COMPANY_NAME", "companyName");
        obj.put("BOUNS", "bouns");
        obj.put("SALES_AWARD", "salesAward");
        obj.put("SALES_PUNISHMENT", "salesPunishment");
        obj.put("COMPANY_ID","companyId");
        obj.put("MONTH","month");
        obj.put("ATTACH_NAME", "attachName");
        return obj;
    }

}
